package com.peas.platform.module.icims.base.mdm.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("公告")
public class AnnounceVo extends BaseVo {

    @Comment(value = "公告类型", enumType = "AnnounceType")
    @ApiModelProperty(value = "公告类型", notes = "枚举取值:AnnounceType")
    @Size(max = 20, message = "公告类型不能超过20个字符")
    private String announceType;

    @Comment(value = "公告标题")
    @ApiModelProperty(value = "公告标题")
    @Size(max = 100, message = "公告标题不能超过100个字符")
    private String title;

    @Comment(value = "公告内容")
    @ApiModelProperty(value = "公告内容")
    private String content;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    // （附件表）外键
    @Comment(value = "附件ID")
    @ApiModelProperty(value = "附件ID")
    private Long attachmentId;

    @Comment(value = "附件名称")
    @ApiModelProperty(value = "附件名称")
    @Size(max = 100, message = "附件名称不能超过100个字符")
    private String attachmentName;

    @Comment(value = "附件URL")
    @ApiModelProperty(value = "附件URL")
    @Size(max = 200, message = "附件URL不能超过200个字符")
    private String attachmentUrl;

}
